//
//  PKRadioDetailHeaderView.m
//  PianKe
//
//  Created by ybq on 15/12/23.
//  Copyright © 2015年 B7_Young. All rights reserved.
//

#import "PKRadioDetailHeaderView.h"

@implementation PKRadioDetailHeaderView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _mainImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kWidth, 175)];
        [self addSubview:_mainImageView];
        
        _headImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 195, 24, 24)];
        _headImageView.layer.cornerRadius = 12;
        _headImageView.layer.masksToBounds = YES;
        [self addSubview:_headImageView];
        
        _unameLabel = [[UILabel alloc] initWithFrame:CGRectMake(55, 200, 60, 15)];
        _unameLabel.font = [UIFont systemFontOfSize:12];
        _unameLabel.textColor = [UIColor colorWithRed:160.0 / 255 green:170.0 / 255 blue:190.0 / 255 alpha:1];
        [self addSubview:_unameLabel];
        
        _descLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 240, 280, 10)];
        _descLabel.font = [UIFont systemFontOfSize:12];
        _descLabel.textColor = [UIColor grayColor];
        [self addSubview:_descLabel];
        
        _countLabel = [[UILabel alloc] initWithFrame:CGRectMake(kWidth - 70, 200, 60, 15)];
        _countLabel.textAlignment = NSTextAlignmentRight;
        _countLabel.font = [UIFont systemFontOfSize:10];
        _countLabel.textColor = [UIColor lightGrayColor];
        [self addSubview:_countLabel];
        
        UIImageView *line = [[UIImageView alloc] initWithFrame:CGRectMake(0, 275, kWidth, .5)];
        line.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:line];
    }
    return self;
}



@end
